// scope2.c 
// gcc scope2.c

#include <stdio.h>
#include <stdlib.h>

int x;

void increment(void)
{
    x++;
}

int main()
{
    x = 10;
    printf("x = %d\n", x);
    
    increment();
    printf("increment()\n");
    
    printf("x = %d\n", x);
    
    printf("\n\n");
    system("pause");
    return 0;
}

